//
//  CS_Development_AddButton.m
//  Pods
//
//  Created by 网新中研 on 2017/5/5.
//
//

#import "CS_Development_AddButton.h"

@implementation CS_Development_AddButton

-(CGFloat)layoutView:(UIView *)superView primaryY:(CGFloat)primaryY{
    
    self.backgroundColor = [UIColor whiteColor];
    
    UIButton *button = [[UIButton alloc]init];
    [button setTitle:@"添加" forState:UIControlStateNormal];
    
    [button setTitleColor:[UIColor colorFromHexCode:@"333333"] forState:UIControlStateNormal];
    
    button.frame = CGRectMake(10, 10, kWindowW - 20, 40);
    
    button.layer.borderWidth = 1.0;
    button.layer.borderColor = [UIColor colorFromHexCode:@"BBBBBB"].CGColor;
    button.layer.shadowColor = [UIColor colorFromHexCode:@"BBBBBB"].CGColor;
    button.layer.cornerRadius = 5;
    button.layer.shadowOffset = CGSizeMake(0, 1);
    
    [self addSubview:button];
    
    self.frame = CGRectMake(0, primaryY, kWindowW, 60);
    
    [superView addSubview:self];
    
    return primaryY + 60;
}

@end
